﻿Echo Setting paths
@SET SPDIR="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12"
@SET TEMPLATEDIR="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Template"
@SET STSADM="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm"

if [%1] == [] GOTO Default
SET Url=%1
GOTO Start:

:Default
SET Url=http://rdmis

:Start
Echo Attempting to retract previous solution
%STSADM% -o retractsolution -name  id-sharepoint.wsp -immediate -url %Url%
%STSADM% -o execadmsvcjobs

Echo Deleting previous solution
%STSADM% -o deletesolution -name  id-sharepoint.wsp -override 
%STSADM% -o execadmsvcjobs

